package com.example.bootDemo.oneTomany;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 一对多接受者
 *
 * @author zys20
 */
@Component
@RabbitListener(queues = "oneToMany")
public class OneToManyReceive2 {

    @RabbitHandler
    public void process(String context) {
        System.out.println("oneToMany 2 : " + context);
    }

}
